// This table builds directly on the replication files of Maraglit (2012)
// We sincerely thank Yotam for making these materials available to us.
// We have added our variables to his dataset
// Table A4 in Supplemental appendix of "Low skill products by high skill workers"
// Author: Erica Owen


use mow_micro_rep_marg.dta


*************************
// ANALYSIS
*************************

// Define "In sample" variable, to keep regressions consistent in terms of the same response set
gen insample=.
replace insample=1 if lincppp!=. & IQ!=. & zCT1!=. & laddertoday!=. &  ladderchange!=. & country!=11 & country!=41  & country!=8 & country!=43 
// Define local with basic set of covariates

// Define local with basic set of covariates
local basic "educ age female  partime pensioner selfemployed unemployed notinlabor "

**** TABLE 2

xi: probit LOG `basic' lincppp jobsglob zCT1 i.country if insample==1 [pw=weight]
est sto m1
xi: probit LOG `basic' lincppp jobsglob zCT1 c.reled##c.lnreal i.country if insample==1 [pw=weight]
est sto m2
probit LOG `basic' lincppp jobsglob zCT1 c.reled##c.lnreal if insample==1 [pw=weight]
est sto m3

